package com.tengju.data.infrastructure.persistence.mybatis.mapper.data.custom;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface DwsBonusTopYearMapper {

    Map<String,Object> getSelfYearRank(@Param("idCode") Long idCode,
                                       @Param("year") Integer year,
                                       @Param("lastYear") Integer lastYear,
                                       @Param("topLimit") Integer topLimit);

    List<Map<String,Object>> getAllYearRank(@Param("year") Integer year,
                                            @Param("topLimit") Integer topLimit,
                                            @Param("offset") Integer offset,
                                            @Param("limit") Integer limit);

    List<Map<String,Object>> getByIdCodeAndYear(@Param("idCodeList") List<Long> idCodeList,
                                                @Param("year") Integer year,
                                                @Param("topLimit") Integer topLimit);

    Integer getTotal(@Param("year") Integer year,
                     @Param("topLimit") Integer topLimit);
}
